 var pageIndex = 0;
        var pageSize = 9;
        var allPage = 0;
        $(function () {
            $(window).resize(function () {
                setauto();
            });
            getTopHtml(6);//网站顶部
            //获取banner
            getPageBannerImg(5);
            //默认显示
            BindData();
            //放大效果                                               
            $(".news_div .news_list .items .box .img").hover(function () {
                var that = $(this);
                that.addClass("animation_img");
                setTimeout(function () {
                    that.css({ "background-size": "110%" });
                }, 200);
            }, function () {
                $(this).removeClass("animation_img");
                $(this).css({ "background-size": "100%" });
            });
        });
        //图片高度计算
        function setauto() {
            $(".news_div .news_list .items").css({ "width": +($(".news_div .news_list").width() / 3) + "px" });
        }
        var ind = 0;
        function BindData() {
            var datas = { LanguageType: LanguageId, ProductCategory: 2, PageIndex: pageIndex, PageSize: pageSize };
            $.zmdAjax("ProductShowList", "POST", datas, false, function (obj) {
                if (obj.code == 0) {
                    if (obj.count > 0) {
                        if ((obj.count % pageSize) > 0) {
                            allPage = parseInt(obj.count / pageSize) + 1;
                        }
                        else {
                            allPage = parseInt(obj.count / pageSize);
                        }
                        if (allPage == (pageIndex + 1)) {
                            getPagerMsg();//暂无数据
                        } else {
                            getPagerBtn();//分页
                        }
                    }
                    else {
                        getPagerMsg();//暂无数据
                    }
                    $.each(obj.data, function (i, e) {
                        var str = "", swtr = "";
                        str += '<div class="items">';
                        str += '<div class="box">';
                        str += '<div class="img" style="height:185px;background:url(' + e.BigImgUrl + ') no-repeat center center;background-size:100%;">';
                        str += '<img src="' + e.BigImgUrl + '" style="display:none;" />';
                        str += '<div class="link"><div class="looks hover" onclick="lookproimg(' + ind + ')">查看大图</div></div>';
                        str += '</div>';
                        str += '<div class="tit nowrap">' + e.Name + '</div>';
                        str += '</div>';
                        str += '</div>';
                        $("#ConProList").append(str);
                        ind++;
                    });
                    setauto();
                }
                else {
                    getErrorMsg(obj.message);//错误提示
                }
            }, function (obj) {
                getErrorMsg(obj.message);//错误提示
            });
        }
        //点击加载更多
        function BindNext() {
            pageIndex++;
            BindData();
        }
        //查看大图
        function lookproimg(ind) {
            var swtr = "";
            swtr += '<div class="anti_search" id="pro_center">';
            swtr += '<div class="anti_box product" id="SwiperProShow" style="height:479px;left:' + ((document.documentElement.clientWidth / 2) - 528) + "px" + ';top:' + ((document.documentElement.clientHeight / 2) - 250) + "px" + ';">';
            swtr += '<div class="bd" id="HomeTopBanner">';
            $("#ConProList .items").each(function (s) {
                swtr += '<div class="slide_li"><img src="' + $(this).children().children().children("img").attr("src") + '" alt="" /><div class="ptxt">' + $(this).children().children(".tit").text() + '</div></div>';
            });
            swtr += '</div>';
            swtr += '<a class="sPrev"></a>';
            swtr += '<a class="sNext"></a>';
            swtr += '<div class="closeico hover" onclick="close_anti(this)"></div>';
            swtr += '</div></div>';
            $("body").append(swtr);
            $(".anti_box .closeico").css({ "top": ((document.documentElement.clientHeight / 2) - 270) + "px", "right": ((document.documentElement.clientWidth / 2) - 545) + "px" });
            jQuery("#SwiperProShow").slide({ effect: "left", defaultPlay: false, prevCell: ".sPrev", nextCell: ".sNext", defaultIndex: ind, pnLoop: false });
        }